from typing import Optional

from fastapi_utils.api_model import APIModel
from pydantic import BaseModel


class IdeRegistryCreateRequest(BaseModel):
    name: str
    registry: str
    enable: Optional[int] = 1
    username: Optional[str]
    password: Optional[str]
